
#导入通用类
from Commonlib.loginshare import Commonshare
import time

class Login(Commonshare):
    def login(self, user, pwd):
        self.browser= self.get_browser()
        self.open_url("https://mx.epean.com.cn/lms/login.html")
        self.input_date("xpath", "//*[@id='LAY-user-login-username']",user)
        self.input_date("xpath", "//*[@id='LAY-user-login-password']",pwd)
        self.single_click("id", "loginBtn")
        time.sleep(1)

